package com.sunny.myproject.sales.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.client.entity.Client;
import com.sunny.myproject.storem.entity.Materiel;
import com.sunny.myproject.system.entity.IdEntity;

/**
 * 销售合同
 * @author sunny_nie
 *
 */
@Entity
@Table(name="tb_salesContract")
public class SalesContract extends IdEntity{
	
	private Client client;
	private Materiel materiel;
	private OrderForm orderForm;

	private String content;

	@ManyToOne(targetEntity=Client.class)
	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	@ManyToOne(targetEntity=Materiel.class)
	public Materiel getMateriel() {
		return materiel;
	}

	public void setMateriel(Materiel materiel) {
		this.materiel = materiel;
	}

	@ManyToOne(targetEntity=OrderForm.class)
	public OrderForm getOrderForm() {
		return orderForm;
	}

	public void setOrderForm(OrderForm orderForm) {
		this.orderForm = orderForm;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	
}
